//编程使用dowhile实现模拟学习成绩的检查
import java.util.Scanner;

public class DoWhileCheckeTest {
	public static void main(String[] args) throws Exception{
		String s1 = "";
		do{
			System.out.println("正在疯狂学习中......");
			Thread.sleep(5000);

			System.out.println("输入是否合格：y/n");
			Scanner sc = new Scanner(System.in);
			 s1 = sc.next();
		}while(!"y".equals(s1));


		//典故，考点:while（）后面加个分号
		int i =1;
		while(i <= 10000) {
			System.out.println("I Love You !");
			i++;
		}

		//加了分号相当于下面这种效果
		while(i <= 10000){
			;
		} 
		{
			System.out.println("I Love You !");
			i++;
		}
	}
}